package com.xcc.opendd;

import android.text.TextUtils;

public class TimeMode {
    public int _id;
    public int timeL;
    private String timeStr;
    public boolean isOpen;

    public String getTimeStr() {
        if (TextUtils.isEmpty(timeStr)) {
            if (timeL > 100) {
                int i = timeL % 100;
                int h = timeL / 100;
                if (i > 10) {
                    timeStr = h + ":" + i;
                } else {
                    timeStr = h + ":0" + i;
                }
            } else if (timeL > 10) {
                timeStr = "00:" + timeL;
            } else timeStr = "00:0" + timeL;
        }
        return timeStr;
    }
}
